<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title>商品类型管理</title>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <script type='text/javascript' src='__PUBLIC__/Js/Admin/category.js'>
        </script>
        <link rel='stylesheet' type='text/css' href="__PUBLIC__/Css/Admin/category.css"/>
    </head>
    <body>
        <h2 class='top'>
            <span>商品类型管理</span>
            <a href="<?php echo U('addType');?>">添加商品类型</a>
        </h2>
        <table class="table1">
        <tr>
            <th width='8%'>ID</th>
            <th width='30%'>商品类型名称</th>
            <th width='60%'>操作</th>
        </tr>
        <?php if(is_array($type)): foreach($type as $key=>$v): ?><tr>
                <td width='8%' align='center'><?php echo ($v["id"]); ?></td>
                <td><?php echo ($v["name"]); ?></td>
                <td align='center'>
                    <a href="<?php echo U('attrList', array('id' => $v['id']));?>">添加属性</a>
                    <a href="" class='edit'>编辑</a>
                    <a href="" class='del'>删除</a>
                </td>
            </tr><?php endforeach; endif; ?>
        <tr>
            <td colspan='3' align='center'>
                <?php echo ($page); ?>
            </td>
        </tr>
    </table>
    </body>
</html>